package com.gticket.customerbackend.service.impl;

import com.gticket.customerbackend.mapper.CinemaMapper;
import com.gticket.customerbackend.pojo.Cinema;
import com.gticket.customerbackend.service.CinemaService;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * cinema的service层的实现类
 */
@Service
@Data
public class CinemaServiceImpl implements CinemaService {

    @Autowired
    private CinemaMapper cinemaMapper;


    @Override
    public List<Cinema> listCinemas(Cinema cinema) {
        return cinemaMapper.listCinemas(cinema);
    }

    @Override
    public Cinema getCinemaByCinema_id(Cinema cinema) {
        return cinemaMapper.getCinemaByCinema_id(cinema);
    }

    @Override
    public void updateCinema(Cinema cinema) {
        cinemaMapper.updateCinema(cinema);
    }

    @Override
    public void deleteCinema(Cinema cinema) {
        cinemaMapper.deleteCinema(cinema);
    }
}
